package com.yumingjaing.starter;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Configuration;

/**
 * @description:
 * @author: John
 * @version: MyStarter.java, v1.0 2024年11月16日 20:42
 */
@Configuration
@ConditionalOnProperty(name = "johnJava.Version", havingValue = "21", matchIfMissing = true)
public class MyStarter {
    static {
        System.out.println("----------");
    }

    @Value("${johnJava.Version}")
    private String jjVersion;

    public MyStarter(){
        System.out.println("MyStarter init...");
    }

    public String getJjVersion() {
        return jjVersion;
    }
}